use std::sync::OnceLock;

#[test]
fn static_sync_lazy_via_fn() {
    fn xs() -> &'static Vec<i32> {
        static XS: OnceLock<Vec<i32>> = OnceLock::new();
        XS.get_or_init(|| vec![1, 2, 3])
    }
    assert_eq!(xs(), &vec![1, 2, 3]);
}
